home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: gcc bug w/getenv? (running Linux)
- Date: 07 Feb 1996 16:24:15 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb7092415@qcd.lanl.gov>
- References: <4f8sue$84d@newsflash.concordia.ca>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: ac_march@ece.concordia.ca's message of 7 Feb 1996 00:49:18 GMT
-
- In article <4f8sue$84d@newsflash.concordia.ca>
- ac_march@ece.concordia.ca (Angus C. March) writes:
- <snip>
- I seem to suffer this bizarre bug in gcc-2.6.3, that run on Linux 1.2.13. I
- tried to assigning a getenv() pointer to a varaible of type char *, but I
- got a warning about assigning an integer to a pointer. I tried this little
- experiement:
-
- getenv needs to be declared before use: simplest way to achieve that
- is to #include <stdlib.h>.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-